package syf.doublelist;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//用水浒英雄定义，每个对象就是一个节点
public class HeroNode {
    Integer no;
    String name;
    String NikeName;
    HeroNode next;
    HeroNode pre;

    public HeroNode() {
    }

    public HeroNode(Integer no, String name, String nikeName) {
        this.no = no;
        this.name = name;
        NikeName = nikeName;
    }

    @Override
    public String toString() {
        return "HeroNode{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", NikeName='" + NikeName + '\'' +
                '}';
    }
}
